package cn.qiyu5522.tk_ems.result;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ProjectName: tk_ems
 * @Package: cn.qiyu5522.tk_ems.result
 * @ClassName: CustomMapResult
 * @Author: [Toneky]
 * @Date: 2023/2/4 17:59
 * @Version: V1.0
 **/

public class CustomMapResult {
    /*
     * @description:  封装条件查询参数
     * @author: TangQi
     * @date: 2023/2/4 18:16
     * @param: records
     * @param: currentPage
     * @param: pageSize
     * @param: total
     * @return: java.util.Map<java.lang.String,java.lang.Object>
     **/
    public static Map<String,Object> packagingResult(List records,Integer currentPage, Integer pageSize,Long total){
        Map<String,Object> result = new HashMap<>();
        result.put("records",records);
        result.put("currentPage",currentPage);
        result.put("pageSize",pageSize);
        result.put("total",total);
        return result;
    }

}
